<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ajaxXMLHttpRequest(ch2)</title>

<script type="text/javascript" src="../js/jquery-1.4.2.js"> </script>

<script type="text/javascript">

$(document).ready( function(){

	$('#buttonTest').click( function(){
		$.ajax({
			url : this.value,
			dataType : 'text',
			success: function(data){
					 	alert( data );
						$('#testDiv').text(data);
			}
		});//end ajax
	});//end click
});//end ready


</script>

</head>
<body>
<form>
	<input id="buttonTest" type="button" value="simple.jsp" />
	<div id="testDiv" style="display:;"></div>
</form>
</body>
</html>